//
//  File.swift
//  
//
//  Created by tangbl93 on 2021/1/7.
//

import Foundation

/// Print log
public func YXLog<T>(_ message: T, file: String = #file, method: String = #function, line: Int = #line) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    #endif
}

/// Just print log
public func YXNSLog<T>(_ message: T) {
    #if DEBUG
        NSLog("YXLog: \(message)")
    #endif
}
